/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.rh.game.impl;

import com.rh.game.GameCondition;
import com.rh.game.GameEffect;
import com.rh.game.MagicalEffect;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Hayden
 */
public class MagicalEffect1 implements MagicalEffect {
    private When when = When.PUT_ON;
    public When getWhen() { return when; }
    
    private GameCondition condition = null;
    public GameCondition getCondition()  {
        return condition;
    }
    private List<GameEffect> effects = GameEffect.EMPTY_LIST;
    public List<GameEffect> getEffects()  {
        return effects;
    }
    
    public MagicalEffect1(GameEffect pEffect, GameCondition pCondition)  {
        condition = pCondition;
        effects = new ArrayList<GameEffect>();
        effects.add(pEffect);
    }
    
    MagicalEffect1(List<GameEffect> pEffect, GameCondition pCondition)  {
        effects = pEffect;
        condition = pCondition;
    }
}
